<template>
  <div>
    <HmForm ref="MyForm"></HmForm>

    <button @click="fn">提交</button>
  </div>
</template>

<script>
//vue该组件的核心配置项
import HmForm from './components/HmForm.vue';
export default {
  components: {
    HmForm,
  },
  methods: {
    fn() {
    
      this.$refs.MyForm.reset()
    },
  },
};
</script>
